// 高度限制
.health_container_height{
    height: 100vh;
    overflow: hidden;
}

// 秤
.weight-scale{
  height: 470rpx;
  background-color: #8279ea;
  position: relative;
  overflow: hidden;
  .chart-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    ec-canvas {
      width: 100%;
      height: 470rpx;
    }
  
  }
  .chart-empty{
        margin: 12rpx auto;
        width: 358rpx;
        height: 318rpx;
      image{
        width: 100%;
        height: 100%;
      }
  }
  .head-portrait{
    position: absolute;
    top: 0;
    left: 20rpx;
    z-index: 997;
    height: 90rpx;
    width: 90rpx;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: inset 0 0 6rpx 1rpx rgb(37, 178, 254,.7);
    display: flex;
    justify-content: center;
    align-items: center;
    image{
      width: 82rpx;
      height: 82rpx;
      border-radius: 50%;
    }
  }
  .test-history{
    position: absolute;
    top: 0;
    right: 20rpx;
    width: 110rpx;
    height: 110rpx;
    .test-history-img{
      height: 80rpx;
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      color:#fff;
      .test-history-img-icon{
        font-size: 50rpx;
      }
    }
    .test-history-text{
      color: #fff;
      line-height: 30rpx;
      text-align: center;
      font-size: 24rpx;
      letter-spacing: 2rpx;
    }
  }
  .bluetooth{
    position: absolute;
    bottom: 40rpx;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40rpx;
    color: #fff;
  }
  // 蓝牙秤icon
  .cheng-icon{
    position: absolute;
    right: 22rpx;
    bottom: 24rpx;
    width: 71rpx;
    height: 71rpx;
    border-radius: 50%;
    background-color: #8279ea;
    display: flex;
    justify-content:center;
    align-items: center;
    image{
      width: 40rpx;
      height: 40rpx;
    }
  }
}

// 身体指数
.body-data {
  height: 140rpx;
  background-color: #857af5;
  display: flex;
  color: #fff;
  align-items: center;
  .data-bmi {
    margin-left: 110rpx;
    width: 180rpx;
    .data-bmi-title {
      display: flex;
      align-items: center;
      .text {
        font-size: 24rpx;
      }

      .label {
        padding: 5rpx 15rpx;
        font-size: 18rpx;
        background-color: #28ce22;
        // background-color: #999999;
        border-radius: 20rpx;
        margin-left: 14rpx;
      }
      .labelEmpty{
        background-color: #999999;
      }
      .labelRed{
        background-color: #ff2d11;
      }
    }

    .data-bmi-val {
      margin-top: 10rpx;
      font-size: 28rpx;
      
    }
  }

  .data-fat {
    width: 180rpx;
    margin-left: 170rpx;
    .data-fat-title {
      display: flex;
      align-items: center;
      .text {
        font-size: 24rpx;
      }

      .label {
        padding: 5rpx 15rpx;
        font-size: 18rpx;
        // background-color: #999999;
        background-color: #28ce22;
        border-radius: 20rpx;
        margin-left: 14rpx;
      }
      .labelEmpty{
        background-color: #999999;
      }
      .labelRed{
        background-color: #ff2d11;
      }
    }

    .data-fat-val {
      margin-top: 10rpx;
      font-size: 28rpx;
    }
  }

  .data-icon {
    margin-left: 50rpx;
    .data-icon-text {

    }
  }
}


// 趋势

.trend {
  position: relative;
  .trend-head-box {

    padding: 0 30rpx;
   
    .trend-head{
      display: flex;
      align-items: center;
      height: 100rpx;
      border-bottom: 1px solid #e1e1e1;
      justify-content: space-between;
      .trend-head-title {
          font-size: 30rpx;
      }
  
      .trend-head-detail {
        font-size: 26rpx;
        color: #666666;
        .iconfont.icon-xiangyou.trend-head-icon {
          font-size: 20rpx;
        }
      }
    }

  }

  //折线图
  .line-chart {
    height: 500rpx;
    position: relative;
    .container {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 10;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      box-sizing: border-box;
      ec-canvas {
        width: 100%;
        height: 500rpx;
      }
    }
  }
  //折线图为空
  .line-empty{
    position: absolute;
    top: 125rpx;
    left: 50%;
    transform: translateX(-50%);
    width: 340rpx;
    .img{
      width: 100%;
      display: flex;
      justify-content:center;
      image{
        width: 272rpx;
        height: 162rpx;
      }
    }

    .text{
      text-align: center;
      margin-top: 35rpx;
      font-size: 24rpx;
      color: #a0a0a0;
    }
  }

}
.attention{
  background-color: #f1f1f1;
  color: #a6a6a7;
  padding: 15rpx 30rpx;
  font-size: 24rpx;
  text-align: center;
}

  //记录体重
.record-weight{
    height: 180rpx;
    background-color: #ebeff8;
    display: flex;
    justify-content: center;
    align-items: center;
    .record-weight-btn{
        width: 510rpx;
        line-height: 102rpx;
        background-color: #fff;
        color: #8279ea;
        border-radius: 52rpx;
        border: 1px solid #8279ea;
        text-align: center;
    }
}

//测量前准备
.to-measure {
  position: fixed;
  z-index: 998;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  .mask {
      width:100%;
      height: 100%;
      background-color: rgba(0, 0, 0, .4);
  }

  .measure-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 730rpx;
    background-color: #fff;
    border-top-left-radius: 40rpx;
    border-top-right-radius: 40rpx;
    .content-icon {
      text-align: center;
      margin-top: 10rpx;
      text{
        font-size: 60rpx;
        color: #dddddd;
      }
    }

    .content-text {
      margin-top: 35rpx;
      text-align: center;
      font-size: 34rpx;

    }

    .content-date {
      margin-top: 45rpx;
      text-align: center;
      color: #212121;
      .content-date-box{
        display: inline-block;
        line-height: 90rpx;
        font-size: 32rpx;
        border-bottom: 1rpx solid #dddddd;
      }
    }

    .content-height {
      color: #212121;
      margin-top: 45rpx;
      text-align: center;
      .content-height-box{
        display: inline-block;
        line-height: 90rpx;
        font-size: 32rpx;
        border-bottom: 1rpx solid #dddddd;
      }
    }

    .content-sex {
      margin-top: 50rpx;
      display: flex;
      justify-content: center;
      .content-sex-item{
        width: 95rpx;
        height: 95rpx;
        text-align: center;
        line-height: 95rpx;
        box-sizing: border-box;
        border: 1rpx solid #e9e9e9;
        border-radius: 50%;
        margin: 0 42rpx;
      }
      // .content-sex-man-active {
      //     border: none;
      //     background-color: #2483fe;
      //     color: #fff;
      // }

      .active-man{
        background-color: #2483fe;
        color: #fff;
        border:none!important;
      }
      .active-girl{
        background-color: #f92149;
        color: #fff;
        border:none!important;
      }

      .content-sex-woman-active {
        border: none;
        background-color: #f92149;
        color: #fff;
      }
    }

    .content-btn {
      position: absolute;
      bottom: 0;
      left: 0;
      font-size: 34rpx;
      width: 100%;
      background-color: #8279ea;
      color:#fff;
      text-align: center;
      line-height: 100rpx;
    }
  }
}

    // 弹框
.popout-container{
      view.mask {
        position: fixed;
        top: 0;
        left: 0;
        background-color: rgba(0, 0, 0, .5);
        width: 100%;
        height: 100vh;
        z-index: 999;

      }


      // 出生年月
      view.birth-popout {
        z-index: 1000;
        position: absolute;
        top: 300rpx;
        left: 50%;
        transform: translateX(-50%);
        width: 540rpx;
        height: 490rpx;
        background-color: #fff;
        border-radius: 10rpx;
      view.birth-popout-title {
          margin-top: 50rpx;
          text-align: center;
          font-size: 34rpx;
      }
  
      picker-view {
        text-align: center;
        margin: 60rpx auto 0;
        picker-view-column {
          view {
              line-height: 62rpx;
          }
        }
      }
  
      view.birth-popout-btn {
        position: absolute;
        bottom: 54rpx;
        left: 50%;
        transform: translateX(-50%);
        width: 274rpx;
        line-height: 80rpx;
        color: #fff;
        text-align: center;
        font-size: 32rpx;
        background-color: #8279ea;
        border-radius: 40rpx;
      }
      }

      // 身高
      view.height-popout {
        z-index: 1000;
        position: absolute;
        top: 300rpx;
        left: 50%;
        transform: translateX(-50%);
        width: 540rpx;
        height: 490rpx;
        background-color: #fff;
        border-radius: 10rpx;
      view.height-popout-title {
          margin-top: 50rpx;
          text-align: center;
          font-size: 34rpx;
      }
  
      picker-view {
        text-align: center;
        margin: 60rpx auto 0;
        picker-view-column {
          view {
  
          }
        }
      }
  
      view.height-popout-btn {
        position: absolute;
        bottom: 54rpx;
        left: 50%;
        transform: translateX(-50%);
        width: 274rpx;
        line-height: 80rpx;
        color: #fff;
        text-align: center;
        font-size: 32rpx;
        background-color: #8279ea;
        border-radius: 40rpx;
      }
      }

  }